package com.danbay.framework.kafka.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.kafka.annotation.KafkaBootstrapConfiguration;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * @author SJG
 *         2017/11/15.
 */
@Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(value = { java.lang.annotation.ElementType.TYPE })
@Documented
@Import({ KafkaConfiguration.class, KafkaProducerConfig.class, KafkaConsumerConfig.class})
@Configuration
public @interface EnableKafkaProducerAndConsumer {
}
